package _16_;

class Person {
	private String name;
	private int age;
	private String password;
	
	public Person(String password){
		this.password = password;		
	}
    // svn test
	
	public void changePassword(String oldPass, String newPass){
		if(this.password.equals(oldPass)){
			this.password = newPass;
		}else{
			throw new IllegalArgumentException("The old password doesn't match the current password!");
		}
	}
}
